// vite.config.js
import { fileURLToPath, URL } from "node:url";
import { defineConfig } from "file:///F:/workspace/JAVA/wiki/web/node_modules/vite/dist/node/index.js";
import vue from "file:///F:/workspace/JAVA/wiki/web/node_modules/@vitejs/plugin-vue/dist/index.mjs";
import AutoImport from "file:///F:/workspace/JAVA/wiki/web/node_modules/unplugin-auto-import/dist/vite.js";
import Components from "file:///F:/workspace/JAVA/wiki/web/node_modules/unplugin-vue-components/dist/vite.js";
import { ElementPlusResolver } from "file:///F:/workspace/JAVA/wiki/web/node_modules/unplugin-vue-components/dist/resolvers.js";
import Icons from "file:///F:/workspace/JAVA/wiki/web/node_modules/unplugin-icons/dist/vite.js";
import IconsResolver from "file:///F:/workspace/JAVA/wiki/web/node_modules/unplugin-icons/dist/resolver.js";
import { createSvgIconsPlugin } from "file:///F:/workspace/JAVA/wiki/web/node_modules/vite-plugin-svg-icons/dist/index.mjs";
import path from "path";
var __vite_injected_original_dirname = "F:\\workspace\\JAVA\\wiki\\web";
var __vite_injected_original_import_meta_url = "file:///F:/workspace/JAVA/wiki/web/vite.config.js";
var vite_config_default = defineConfig({
  plugins: [
    vue(),
    AutoImport({
      // Auto import functions from Vue, e.g. ref, reactive, toRef...
      // 自动导入 Vue 相关函数，如：ref, reactive, toRef 等
      imports: ["vue"],
      // 需要引入的类型来源
      eslintrc: {
        enabled: true,
        filepath: "./.eslintrc-auto-import.json",
        globalsPropValue: true
      },
      // Auto import functions from Element Plus, e.g. ElMessage, ElMessageBox... (with style)
      // 自动导入 Element Plus 相关函数，如：ElMessage, ElMessageBox... (带样式)
      resolvers: [
        ElementPlusResolver(),
        // Auto import icon components
        // 自动导入图标组件
        IconsResolver({
          prefix: "Icon"
        })
      ]
    }),
    Components({
      resolvers: [
        // Auto register icon components
        // 自动注册图标组件
        IconsResolver({
          enabledCollections: ["ep"]
        }),
        // Auto register Element Plus components
        // 自动导入 Element Plus 组件
        ElementPlusResolver()
      ]
    }),
    Icons({
      autoInstall: true
    }),
    // ElementPlus(),
    // 指定需要缓存的图标文
    createSvgIconsPlugin({
      iconDirs: [path.resolve(__vite_injected_original_dirname, "src/assets/svgs")],
      symbolId: "icon-[name]"
    })
  ],
  resolve: {
    alias: {
      "@": fileURLToPath(new URL("./src", __vite_injected_original_import_meta_url))
    }
  },
  css: {
    // css预处理器
    preprocessorOptions: {
      scss: {
        // 引入 mixin.scss 这样就可以在全局中使用 mixin.scss中预定义的变量了
        // 给导入的路径最后加上 ;
        additionalData: '@import "@/assets/style/mixin.scss";'
      }
    }
  },
  server: {
    host: "0.0.0.0",
    port: 8880,
    //端口号
    open: true,
    //允许自动打开浏览器
    proxy: {
      "/api": {
        target: "http://localhost:8090",
        changeOrigin: true,
        ws: true
      }
    },
    cors: true
  }
});
export {
  vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcuanMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCJGOlxcXFx3b3Jrc3BhY2VcXFxcSkFWQVxcXFx3aWtpXFxcXHdlYlwiO2NvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9maWxlbmFtZSA9IFwiRjpcXFxcd29ya3NwYWNlXFxcXEpBVkFcXFxcd2lraVxcXFx3ZWJcXFxcdml0ZS5jb25maWcuanNcIjtjb25zdCBfX3ZpdGVfaW5qZWN0ZWRfb3JpZ2luYWxfaW1wb3J0X21ldGFfdXJsID0gXCJmaWxlOi8vL0Y6L3dvcmtzcGFjZS9KQVZBL3dpa2kvd2ViL3ZpdGUuY29uZmlnLmpzXCI7aW1wb3J0IHsgZmlsZVVSTFRvUGF0aCwgVVJMIH0gZnJvbSAnbm9kZTp1cmwnXG5cbmltcG9ydCB7IGRlZmluZUNvbmZpZyB9IGZyb20gJ3ZpdGUnXG5pbXBvcnQgdnVlIGZyb20gJ0B2aXRlanMv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